package gitobject;


import java.util.LinkedList;

public class DiffNode{
    public LinkedList<DiffNode> preNode;
    public int x, y;
    public int value;

    public DiffNode(){
        preNode = new LinkedList<>();
        preNode.add(this);
        value = 0;
        x = 0;
        y = 0;
    }
    public DiffNode(DiffNode pre, int v, int newX, int newY){
        preNode = new LinkedList<>();
        preNode.addAll(pre.preNode);
        preNode.add(this);
        value = v;
        x = newX;
        y = newY;
    }
}
